package com.tn.basic.controller;

import com.databstech.apis.result.response.ResultVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tn
 * @version 1
 * @ClassName RibbonTestProducerController
 * @description 负载均衡
 * @date 2020/8/7 11:08
 */
@RestController
@RequestMapping("ribbon")
@Api(tags = "basic - 负载均衡")
public class RibbonTestProducerController {

    @Value("${server.port}")
    private String prot;


    @GetMapping("test01")
    @ApiOperation(value = "basic - 负载均衡 - test01")
    public ResultVO<String> test01(String param){
        return ResultVO.success("my name is server-basic的数据，端口="+prot+"<"+param+">");
    }

}
